package cn.jiyun.config;

import cn.jiyun.service.UsersService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

public class QuartzJob implements Job {
    private final static Logger logger = LoggerFactory.getLogger(QuartzJob.class);
    @Autowired
    private UsersService userService;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        logger.info("QuartzJob:{}{}","execute", userService.queryUsers().size());

    }
}
